package com.example.meetingroomnew.service;

import com.example.meetingroomnew.domain.Reservation;

import java.util.Date;
import java.util.List;

public interface RequestService {
    public Reservation selectByid(int id);

    //    查询所有预约
    public List<Reservation> selectAll();
//    查询用户的所有预约预约
    public List<Reservation> selectBypeople(int userId);

    public int deleteByid(int id);

//    剔除不在时间段内的
    public List<Reservation> selectByTime(Date start,Date after);

    public boolean Insert(Reservation reservation);

    public boolean updateRequest(Reservation reservation);


}
